package com.ggk911.pharmacy_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 药品类型
 * @author ggk-911
 * @version 1.0 2023/3/19 17:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("drug_info_type")
@ApiModel
public class DrugInfoType {
    @TableId(value = "drug_info_type_id", type = IdType.AUTO)
    private Integer drugInfoTypeId;

    private String drugInfoTypeName;

    //类型下的药品
    @TableField(exist = false)
    private List<DrugInfo> drugInfoList;
}
